package spring.JUNIT.AutoWiring;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import spring.JUNIT.UnitTestBase;


@RunWith(BlockJUnit4ClassRunner.class)
public class Testaware extends UnitTestBase {

	public Testaware() {
		super("D:/spring/spring-AutoWiring.xml");

	}

	@Test
	public void testApplicationContext() {
		AutoWiringService bean = super.getBean("AutoWiringService");
		AutoWiringDao dao = super.getBean("autoWiringDao");
		dao.say();
		bean.say();
	}

}
